package com.learn.educommentboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 课程留言表
 * </p>
 *
 * @author m
 * @since 2022-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CourseComment对象", description="课程留言表")
public class CourseComment implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "课程id")
    private Integer courseId;

    @ApiModelProperty(value = "章节id")
    private Integer sectionId;

    @ApiModelProperty(value = "课时id")
    private Integer lessonId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "运营设置用户昵称")
    private String userName;

    @ApiModelProperty(value = "父级评论id")
    private Integer parentId;

    @ApiModelProperty(value = "是否置顶：0不置顶，1置顶")
    @TableField("is_top")
    private Boolean top;

    @ApiModelProperty(value = "评论")
    private String comment;

    @ApiModelProperty(value = "点赞数")
    private Integer likeCount;

    @ApiModelProperty(value = "是否回复留言：0普通留言，1回复留言")
    @TableField("is_reply")
    private Boolean reply;

    @ApiModelProperty(value = "留言类型：0用户留言，1讲师留言，2运营马甲 3讲师回复 4小编回复 5官方客服回复")
    private Integer type;

    @ApiModelProperty(value = "留言状态：0待审核，1审核通过，2审核不通过，3已删除")
    private Integer status;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "记录更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_del")
    private Boolean del;

    @ApiModelProperty(value = "最后操作者id")
    private Integer lastOperator;

    @ApiModelProperty(value = "是否发送了通知,1表示未发出，0表示已发出")
    @TableField("is_notify")
    private Boolean notify;

    @ApiModelProperty(value = "标记归属")
    private Boolean markBelong;

    @ApiModelProperty(value = "回复状态 0 未回复 1 已回复")
    private Boolean replied;


}
